package com.wangshidai.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wangshidai.entity.SysDept;
import com.wangshidai.form.deptform.DeptTreeForm;
import com.wangshidai.util.BusinessException;

import java.util.List;

/**
 *
 */
public interface SysDeptService extends IService<SysDept> {
    void saveDept(SysDept dept) throws BusinessException;

    void updateDept(SysDept dept) throws BusinessException;

    void deleteDept(Integer id) throws BusinessException;

    List<SysDept> listDept(String searchName);

    SysDept selectById(Integer id);

    List<DeptTreeForm> queryAll();

}
